package com.example.lenovo.myapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;

import java.util.Calendar;

public class BroadCastReceiver extends BroadcastReceiver {
    private IOnUpDateListener listener;

    public BroadCastReceiver(IOnUpDateListener listener) {
        this.listener = listener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        listener.updateTime();
    }


}
